import axios from '@/libs/api.request'
// 列表
export const queryCertificate = (data) => {
    return axios.request({
        url: '/originManage/queryCertificate',
        method: 'post',
        data
    })
}
// 获取
export const addCertificate = () => {
    return axios.request({
        url: '/originManage/addCertificate',
        method: 'get',
        params: {

        }
    })
}
// 暂存，申报
export const saveCertificate = (data) => {
    return axios.request({
        url: '/originManage/saveCertificate',
        method: 'post',
        data
    })
}
// 删除
export const delCertificate = (data) => {
    return axios.request({
        url: '/originManage/deleteCertificate',
        method: 'post',
        data
    })
}
// 申报
export const applyCertificate = (data) => {
    return axios.request({
        url: '/originManage/applyCertificate',
        method: 'post',
        data
    })
}
// 详情
export const getCertificate = (certNo) => {
    return axios.request({
        url: '/originManage/certificateDetail',
        method: 'get',
        params: {
            certNo
        }
    })
}
